﻿using Prism.Mvvm;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace RecordBill.Dtos
{
    public class UIBillStatisticsInfo : BindableBase
    {
        public DateTime BillStartTime { get; set; }
        public DateTime BillEndTime { get; set; }

        public List<Transaction> BillItemList { get; set; }

        public string BillDateScopeStr
        {
            get
            {
                return BillStartTime.ToString("yyyy-MM-dd") + "至" + BillEndTime.ToString("yyyy-MM-dd");
            }
        }
        private decimal _sumMoney;
        public decimal SumMoney
        {
            get => _sumMoney; set
            {
                _sumMoney = value;
                RaisePropertyChanged();
            }
        }
    }
}
